import payTransferApi from "@/api/declaration/pay/payTransferApi"
import httpRequest from "@/config/axios/httpRequest"
import { TransferModel } from "@/models/pay/TransferModel"


// 新增转账单
export const createTransfer = async (data: TransferModel) => {
  return await httpRequest.post(payTransferApi.CreateTransfer, data)
}

// 查询转账单列表
export const getTransferPage = async (params) => {
  return await httpRequest.get(payTransferApi.GetTransferPage, { params })
}

export const getTransfer = async (id: number) => {
  return await httpRequest.get(payTransferApi.GetTransfer, { params: { id } })
}
